package com.zjitc.pigspring.utils;

import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.stereotype.Component;

@Component
public class MD5Util {

    public String hashPassword(String password) {
        return DigestUtils.md5Hex(password);
    }

    public static void main(String[] args) {
        System.out.println(DigestUtils.md5Hex("123"));
    }


}
